export function idNoValidator(value) {
		// 正则
		var idReg = /^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/;
		var result = true;
		var code = value.split('');
	    // ∑(ai×Wi)(mod 11)//加权因子
	    var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ];
	    // 校验位
	    var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ];
	    var sum = 0;
	    var ai = 0;
	    var wi = 0;
	    for (var i = 0; i < 17; i++)
	    {
	        ai = code[i];
	        wi = factor[i];
	        sum += ai * wi;
	    }
	    var last = parity[sum % 11];
	    if(last != code[17])
	    {
	        result = false;
	    }
		return idReg.test( value ) && result;
	}
